package exercise1;

/**
 * 房子的中介，代理房子
 */
public class ZhongJie implements FangZiHeTong{

    private FangZiHeTong fangZiHeTong;

    public ZhongJie(FangZiHeTong fangZiHeTong) {
        this.fangZiHeTong = fangZiHeTong;
    }

    @Override
    public void GongYu( ) {
        System.out.println("我帮你代理，租出一套公寓，收一百中介费");
        fangZiHeTong.GongYu();
    }

    @Override
    public void Bs() {
        System.out.println("我帮你代理，租出一套别墅，收三百中介费");
        fangZiHeTong.Bs();

    }

    @Override
    public void Hjf() {
        System.out.println("我帮你代理，租出一套海景房，收二百中介费");
        fangZiHeTong.Hjf();
    }
}
